<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Page extends CI_Controller {
    
    /**
     * Index action 
     * @author tien.nguyen
     */
	public function index($pageCode){
        //instance model
        $this->load->model('Pages', '', true);        
        
        //load data by model 
        $data['Page'] = $this->Pages->getPage($pageCode);
		$this->load->view('page/index', $data);
	}
    
    /**
     * Index action 
     * @author tien.nguyen
     */
	public function index2($pageCode){
        //instance model
        $this->load->model('Pages', '', true);        
        
        //load data by model 
        $data['Page'] = $this->Pages->getPage($pageCode);
		$this->load->view('page/index2', $data);
	}
}